﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AllInvoice.aspx.cs" Inherits="UI.AllInvoice" %>

<%@ Register src="CalenderUserControl.ascx" tagname="CalenderUserControl" tagprefix="uc1" %>
<%@ Register Src="~/CalenderUserControl.ascx" TagPrefix="uc2" TagName="CalenderUserControl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            View Invoices
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <form role="form">
                                       
                                        <div class="form-group">
                                            <label>Location</label>&nbsp;
                                             <select id="ddState" runat="server">
                                                <option></option>

                                            </select>
                                        </div>
                                        <div class="form-group">
                                            
                                                <table>
                                                    <tr>
                                                        <td style="vertical-align:top">
                                                            <label>From</label>
                                                        </td>
                                                        <td style="vertical-align:top">
                                                            <uc1:CalenderUserControl ID="CalenderUserControl1" runat="server" />
                                                        </td>
                                                        <td style="vertical-align:top">
                                                            <label>To</label>
                                                            </td>
                                                        <td style="vertical-align:top">
                                                            <uc2:CalenderUserControl runat="server" ID="CalenderUserControl" />
                                            
                                                        </td>
                                                        <td style="vertical-align:top">
                                                            <asp:Button ID="btnGo" runat="server" Text="Go" OnClick="btnGo_Click" CssClass ="btn btn-default" />   
                                                        </td>
                                                    </tr>
                                                </table>                                   
                                           
                                                                                    
                                                                                        
                                        </div>
                                         
                                        <div class="form-group">
                                            <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="Both"  PageSize="1" 
                                                            AllowPaging="True" AutoGenerateColumns="False" OnPageIndexChanging="grdData_PageIndexChanging">
                                                <pagerstyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></pagerstyle>
                                                <RowStyle  HorizontalAlign="Center"/>
                                                                                             
                                                    <Columns>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                <asp:CheckBox ID="chkSelectAll" 
                                                                              runat="server" 
                                                                              AutoPostBack="true"
                                                                              Text="All"
                                                                              OnCheckedChanged="chkSelectAll_Click"/>
                                                             </HeaderTemplate>
                                                             <itemtemplate>
                                                                 
                                                                  <asp:CheckBox ID="chkItem" 
                                                                                runat="server"
                                                                                AutoPostBack="true" 
                                                                                OnCheckedChanged="chkItem_Click"/>                                                                       
                                                             </itemtemplate>                   
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                <asp:Label ID="lblCustLcoation"
                                                                           runat="server"
                                                                           Text="Customer/Location" />                                   
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="lbCustLocation"
                                                                               runat="server"
                                                                               >
                                                                    '<%# Eval("FirstName") + "/" + Eval("LastName") %>'
                                                                </asp:LinkButton>
                                       
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                               <asp:Label id="lblTaxHeader"
                                                                          runat="server"
                                                                          Text="Tax"/>                        
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblTax"
                                                                           runat="server"
                                                                           Text='<%# Eval("OrderTax") %>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                         <asp:TemplateField>
                                                            <HeaderTemplate>
                                                               <asp:Label id="lblDetailsHeader"
                                                                          runat="server"
                                                                          Text="Date"/>                        
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblDetails"
                                                                           runat="server"
                                                                           Text='<%# Eval("OrderDate") %>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                               <asp:Label id="lblTotalHeader"
                                                                          runat="server"
                                                                          Text="Total"/>                        
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblTotal"
                                                                           runat="server"
                                                                           Text='<%# Eval("OrderTotal") %>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                            </asp:GridView>
                                        </div>        
                                        
                                    </form>
                                </div>
                               
                            </div>
                           
                        </div>
                        
                    </div>
                   
                </div>
                
            </div>
</asp:Content>
